﻿@using FCTC_Web.Models
@model Shop
<h4>
    <span>
        @{ 
            int i = 0;
            if (Model.TrustLevel == "一级")
            {
                i = 1;
            }
            if (Model.TrustLevel == "二级")
            {
                i = 2;
            }
            if (Model.TrustLevel == "三级")
            {
                i = 3;
            }
            if (Model.TrustLevel == "四级")
            {
                i = 4;
            }

            for (int j = 0; j < i; j++)
            {
            <img src="/images/con_huang.gif" width="14" height="14" alt="tu" />
            }
        }
    </span>@Model.FullName</h4>
<ul class="pr">
    <li>
        <dl>
            <dt>
                @if (Model.Imgs != null && Model.Imgs.Count > 0)
                {
                    <a href="@Url.Action("Details", "ShopBusiness", new { id=Model.ID})" target="_blank">
                        <img src="@Url.Action("ShowImage", "Image", new { id = Model.Imgs[0].ID })" width="95" height="80" alt="pic" />
                    </a>
                }
                else
                {
                    <a href="@Url.Action("Details", "ShopBusiness", new { id=Model.ID})" target="_blank">
                        <img src="/images/moren_shop.jpg" />
                    </a>
                }
            </dt>
            <dd>
                <p>
                    <a href="@Url.Action("Details", "ShopBusiness", new { id=Model.ID})" target="_blank">@Model.FullName</a></p>
                <p>
                    @Model.ContactNumber</p>
                <p>
                    @Model.Address</p>
            </dd>
        </dl>
    </li>
</ul>
